﻿using AutoMapper;

namespace AbpZeroTemplate.Api.Admin
{
    public static class CustomAutoMapper
    {
        private static volatile bool _mappedBefore;
        private static readonly object SyncObj = new object();
        /// <summary>
        /// </summary>
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            lock (SyncObj)
            {
                if (_mappedBefore)
                {
                    return;
                }

                CreateMappingsInternal(configuration);

                _mappedBefore = true;
            }
        }

        private static void CreateMappingsInternal(IMapperConfigurationExpression configuration)
        {

        }
    }
}
